package com.fitns.user.exception;

public enum LoginMsgCode implements MsgCode {
    LOGIN_VO_IS_NULL(5000001,"登录信息不能为空"),
    USER_NOT_FIOUND(5000002,"用户不存在"),
    USER_PASSWORD_ERROR(5000003,"密码错误"),
    USER_LOGIN_OUT(5000004,"用户未登录"),
    LOGIN_SEND_VALIDATE_CODE(5000005,"未发送验证码或验证码已失效，请重新发送"),
    LOGIN_VALIDATE_CODE_IS_NULL(5000006,"验证码不能为空"),
    LOGIN_VALIDATE_CODE_IS_ERROR(5000007,"验证码错误")
    ;


    private int code;
    private String message;

    LoginMsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
